using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ModelLayer
{
    [Table("Category")]
    public partial class Category : BaseEntity
    {
        public long CategoryId { get; set; }

        public long ParentId { get; set; }

        [StringLength(100)]
        public string CategoryName { get; set; }



        public virtual Category ParentCategory { get; set; }
        public virtual ICollection<Category> SubCategories { get; set; }
        public virtual ICollection<Product> Products { get; set; }
    }
}
